__________________________________________________________________________________________________
class Solution(object):
    def smallestCommonElement(self, A):
        A = map(set, A)
        work = A.pop()
        for row in A:
            work &= row
        return min(work) if work else -1
__________________________________________________________________________________________________

__________________________________________________________________________________________________
